package com.itheima.demo5_方法重写;

public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.method();
    }
}
class Fu{
    public void method(){
        System.out.println("Fu method");
    }
}

class Zi extends Fu{
    @Override
    public void method(){
        System.out.println("Zi method");
    }
}